package com.example.qa.service.domain.listener;


import com.example.qa.service.domain.Message;
import com.example.qa.service.domain.port.CreateChatContentPort;
import jakarta.annotation.Resource;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@RabbitListener(queues = "test")
public class chatListener {
    @Resource
    private CreateChatContentPort createChatContentPort;
    @RabbitHandler
    public void handler(Message message){
        createChatContentPort.createChatContent(message);
    }
}
